<div class="navButtonsTop rounded-corners">
	<h1 class="title"><g:message code="title.comic.show" args="[comicInstance.title]"/></h1>
</div>
<div class="element">

	<div class="image">
		<img src="${resource(file:comicInstance?.pathFileThumbnail)}"/>
	</div>
	<div class="tableCreate rounded-corners">
		<table>
			<tbody>
				<usr:isAdmin>
			   		<tr>
			            <td class="name"><g:message code="default.label.id"/>:</td>
			      		<td class="value">${fieldValue(bean: comicInstance, field: "id")}</td>
					</tr>
					<tr>
			            <td class="name"><g:message code="default.label.disabled"/>:</td>
			            <td class="value"><g:formatBoolean boolean="${comicInstance?.disabled}" /></td>
			        </tr>
			        <tr>
			            <td class="name"><g:message code="default.label.dateCreated"/>:</td>
			            <td class="value"><g:formatDate format="dd-MM-yyyy" date="${comicInstance?.dateCreated}" /></td>
			        </tr>
			        <tr>
			            <td class="name"><g:message code="default.label.lastUpdated"/>:</td>
			            <td class="value"><g:formatDate format="dd-MM-yyyy" date="${comicInstance?.lastUpdated}" /></td>
			        </tr>
			        <tr>
			            <td class="name"><g:message code="default.label.moderationRequest"/>:</td>
			            <td class="value"><g:checkBox name="moderationRequest" value="${comicInstance?.moderationRequest}" DISABLED="true"/></td>
			        </tr>
				</usr:isAdmin>
		  		<tr>
		       		<td class="name"><g:message code="default.label.title"/>:</td>
		           <td class="value">${fieldValue(bean: comicInstance, field: "title")}</td>
				</tr>
				<tr>
		         	<td class="name"><g:message code="default.label.description"/>:</td>
		        </tr>
		        <tr>
		            <td class="value">${comicInstance.description}</td>
				</tr>
				<usr:isUser>
			        <tr>
			            <td class="name"><g:message code="default.label.createdBy"/>:</td>
			            <td class="value"><g:link controller="user" action="show" id="${comicInstance?.createdBy?.id}">${comicInstance?.createdBy?.alias}</g:link></td>
			        </tr>
			        <tr>
			            <td class="name"><g:message code="default.label.commentable"/>:</td>
			            <td class="value"><g:formatBoolean boolean="${comicInstance?.commentable}"/></td>
			        </tr>
			        <tr>
			            <td class="name"><g:message code="default.label.rateable"/>:</td>
			            <td class="value"><g:formatBoolean boolean="${comicInstance?.commentable}"/></td>
			        </tr>
				</usr:isUser>			       
			</tbody>
		</table>
	</div>
	<div class="rating">
		<g:if test="${comicInstance.rateable}">
			<div id="average-rating">
				<label><g:message code="default.label.rating" />:</label> <g:render template="/rate/rate" model="[instance:comicInstance]"/>
			</div>
			<usr:itsNotMine target="${comicInstance.createdBy.id}">
				<div id="your-rating">
					<label><g:message code="default.label.rate.yours" />:</label> <g:render template="/rate/rateCustom" model="[instance:comicInstance]"/>
				</div>
			</usr:itsNotMine>
		</g:if>
	</div>
</div>
	
<div class="navButtons rounded-corners" >
	<g:render template="/comic/buttons"></g:render>
</div>					